import * as types from './mutation_types'

// 刷新窗口尺寸
export const refreshWindowSize = ({
  commit,
}) => {
  commit(types.REFRESH_WINDOW_SIZE)
}

// 打开功能页面
export const openPage = ({
  commit
}, event) => {
  commit(types.OPEN_PAGE, event)
}

// 表单中的操作成功
export const doActionSuccess = ({
  commit
}, event) => {
  commit(types.DO_ACTION_SUCCESS, event)
}
// 表单中的操作完成
export const doActionEnd = ({
  commit
}, event) => {
  commit(types.DO_ACTION_END, event)
}
